import request from '@/utils/request'

export function queryByPage (data) {
  return request({
    url: '/medicalProjects/queryByPage',
    method: 'post',
    data
  })
}

export function insert (data) {
  return request({
    url: '/medicalProjects/insert',
    method: 'post',
    data
  })
}

export function update (data) {
  return request({
    url: '/medicalProjects/update',
    method: 'post',
    data
  })
}

export function deleteById (params) {
  return request({
    url: '/medicalProjects/deleteById',
    method: 'get',
    params
  })
}
// 

export function queryList (data) {
  return request({
    url: '/medicalProjectsUse/queryByPage',
    method: 'post',
    data
  })
}

export function insertBatch (data) {
  return request({
    url: '/medicalProjectsUse/insertBatch',
    method: 'post',
    data
  })
}

export function edit (data) {
  return request({
    url: '/medicalProjectsUse/update',
    method: 'post',
    data
  })
}

export function updateBatch (data) {
  return request({
    url: '/medicalProjectsUse/updateBatch',
    method: 'post',
    data
  })
}

export function del (params) {
  return request({
    url: '/medicalProjectsUse/deleteById',
    method: 'get',
    params
  })
}

export function getEvaluat (data) {
  return request({
    url: '/evaluationHospital/queryByPage',
    method: 'post',
    data
  })
}